﻿using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using Exhibition.Dao;
using Exhibition.IService;
using Exhibition.Dao.ViewModel;
namespace Exhibition.Service.Service
{

    public class AdminUserService : IAdminUserService
    {


        AdminUserDao dao = new AdminUserDao();


        #region IAdminUserService 成员

        public List<E_AdminUser> GetList(int startIndex, int maxRow, out int recordcount)
        {

            return dao.GetList(startIndex, maxRow, out recordcount);

        }


        #endregion


        #region IAdminUserService 成员

        public int Save(AdminUserModel obj)
        {

            return dao.Save(obj);

        }


        #endregion


        #region IAdminUserService 成员

        public AdminUserModel GetOneById(int id)
        {

            return dao.GetOneById(id);

        }


        #endregion

        #region IAdminUserService 成员
        public int DelById(int id)
        {

            return dao.DelById(id);

        }


        #endregion



        public AdminUserModel UserLogin(string uname, string pwd)
        {
            return dao.UserLogin(uname,pwd);
        }
    }

}

